Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / The MRJFileUtils Class
Methods /


setFileCreator

Sets the creator for an existing Mac OS file.

public static final void setFileCreator (
                     File file, 
                     MRJOSType creator) 
                     throws IOException;
file
The file whose creator you want to set.
creator
The 4-byte creator you wish to assign as the default.
DISCUSSION
On the Mac OS, a creator is a 4-byte character constant that the Finder uses to identify the application that should be used to open the document file. This method throws IOException if the desired file cannot be found.

SEE ALSO
The setFileTypeAndCreator method (page 37).

The setFileType method (page 38).

The "Finder Interface" chapter in Inside Macintosh: Macintosh Toolbox Essentials for information about creators.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997